<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="common :: commonHead('文件管理')">
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">

        <fieldset class="table-search-fieldset">
            <legend>搜索信息</legend>
            <div style="margin: 10px 10px 10px 10px">
                <form class="layui-form" action="" id="fileForm">
                    <input type="hidden" id="projectId" name="projectId" th:value="${projectId}">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">文件名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="fileName" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">立项日期</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" id="date-range" name="dateRange" placeholder="开始 到 结束">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <button id="search" type="submit" class="layui-btn layui-btn-primary" lay-submit  lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                        </div>
                    </div>
                </form>
            </div>
        </fieldset>

        <script type="text/html" id="toolbarDemo">
            <div class="layui-btn-container">
                <button class="layui-btn layui-btn-sm" lay-event="add"> 添加文件 </button>
                <button class="layui-btn layui-btn-sm layui-btn-warm" lay-event="zip"> 下载勾选文件 </button>
                <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="delete"> 删除勾选文件 </button>
            </div>
        </script>

        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>

    </div>
</div>
<script type="text/javascript" th:src="@{'js/page/view/file/list.js'}"></script>
<script type="text/html" id="uploadDate">
    {{ ad.date.parseYYYYmmdd(d.uploadDate)}}
</script>
<script type="text/html" id="fileUrl">
    <a href="{{d.url}}" class="layui-table-link" download="">{{ d.url }}</a>
</script>
</body>
</html>